<template>
  <div>
    <div class="m-3">
      <router-link :to="{path:'/tree/Catalogue'}" class="me-3">
        回到目录
      </router-link>
    </div>
    <div v-for="(item, index) in data" :key="index" class="d-flex">
      <div class="col-1">{{ item.count }}</div>
      <div class="col-1">{{ item.id }}</div>
      <div>{{ item.value }}</div>
    </div>
  </div>
</template>
<script>
import {ProveBlueprintApi_much_children} from "@/api/api";
import {getJson} from "@/api/http";

export default {
  name: "MuchChildren",
  data() {
    return {
      data: []
    }
  },
  methods: {
    async init() {
      let data = {}
      let res = await getJson(ProveBlueprintApi_much_children + "/" +  0, data)
      if (res.code !== 1) {
        this.$message.error('服务器异常');
        return
      }
      this.data = res.data
    }
  },
  created() {
    this.init()
  },
}
</script>

<style scoped>

</style>